package Factory.idcard;

import Factory.framework.Product;

/**
 * <p>Title IDCard</p>
 *
 * @author YiMing Liu
 * @date 2018/6/9 18:59
 * <p>Description:</p>
 */
public class IDCard  extends Product{
    private String owner;

    IDCard(String owner) {
        System.out.println("制作"+owner+"id的卡");
        this.owner = owner;
    }

    @Override
    public void use() {
        System.out.println("使用"+owner+"id的卡");
    }

    public String getOwner() {
        return owner;
    }
}
